/*
 * Copyright (c) 2016. zhaojin 15398699939@163.com
 */

package com.bankscene.screenfit.events;

import android.support.annotation.NonNull;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;

public interface EventBusEvents {

    class Go2MainActivity {

        public final Go2MainActivityFlag flag;

        public enum Go2MainActivityFlag {

            LAUNCHER(1, "APP启动"), GOHONE(2, "返回主页");

            private final int code;
            private final String msg;

            Go2MainActivityFlag(int code, String msg) {
                this.code = code;
                this.msg = msg;
            }

        }

        public Go2MainActivity(@NonNull Go2MainActivityFlag flag) {
            this.flag = flag;
        }

    }

    class OnItemClickEvent {

        public final Integer position;

        public OnItemClickEvent(@NonNull Integer position) {
            this.position = position;
        }

    }

    class OnNavigationItemSelectedEvent {

        public final MenuItem menuItem;

        public OnNavigationItemSelectedEvent(@NonNull MenuItem menuItem) {
            this.menuItem = menuItem;
        }
    }

    class OnBasePresenterAdapterGetViewEvent {

        public final int position;
        public final View convertView;
        public final ViewGroup parent;

        public OnBasePresenterAdapterGetViewEvent(@NonNull int position, @NonNull View convertView, @NonNull ViewGroup parent) {
            this.position = position;
            this.convertView = convertView;
            this.parent = parent;
        }
    }
}
